package com.zlzxm.sorting.util.net

import android.text.TextUtils
import com.zlzxm.sorting.globe.Constant
import com.zlzxm.sorting.usermanager.UserManager
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

/**
 *
 *CREATE BY zlzxm ON 2022/7/19
 *
 */
object RetrofitHold {

    val retrofit : Retrofit = Retrofit.Builder()
        .baseUrl("https://admin.beiyuqiye.com/")
        .client(OkHttpClient.Builder()
            .addInterceptor(HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY))
            .addInterceptor { chain ->
                val build = chain.request().newBuilder()



                chain.proceed(build.build())
            }
            .build())
        .addConverterFactory(GsonConverterFactory.create())
        .build()


}